<script setup>
const fn = () => {
  console.log('我是子组件的fn方法')
}
defineExpose({
  fn
})
</script>

<template>
  <div class="app-page">son</div>
</template>

<style scoped>
.app-page {
  width: 50px;
  height: 50px;
  border: 5px solid #000;
}
</style>
